<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>随行付</title>
<meta name="Copyright" content="Douco Design." />
<link href="css/public.css" rel="stylesheet" type="text/css">
<link href="css/haiersoft.css" rel="stylesheet" type="text/css" media="screen,print" />
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/global.js"></script>
</head>
<body>
<div id="dcWrap">
 <div id="dcHead">
 <div id="head">
  <div class="nav">
   <ul class="navRight">
    <li><a href="JavaScript:void(0);">您好，admin</a>
    </li>
    <li class="noRight"><a href="login.php?rec=logout">退出</a></li>
   </ul>
  </div>
 </div>
</div>
<!-- dcHead 结束 --> <div id="dcLeft"><div id="menu">
 <ul class="top">
  <li><i class="home"></i></li>
 </ul>
 <script>
$(function() {
	
    //$(".menu_list dd");
    $(".menu_list dt").click(function(){
        $(this).toggleClass("open").next().slideToggle("fast");
    });
    
    
    
    //点击查询余额
    $("#chaxunyue_a").click(function(){
    	$.ajax({
    		url:"yueAjax",
    		dataType:'json',
    		success:function(data){
    		    var yueData=eval('('+data+')');
    		    var yue_resData=yueData.resData;
    		    var resData=eval('('+yue_resData+')');
    			$("#yue_clientid").html(yueData.clientId);
    			$("#yue_accNo").html(resData.accNo);
    			if(resData.accSts=="01"){
        			$("#yue_accSts").html("正常");
    			}else{
    				$("#yue_accSts").html("异常");
    			}
    			$("#yue_totalBl").html(resData.totalBl+"元");
    			$("#yue_bl").html(resData.bl+"元");
    		},
    	});
    });
});
</script>

<div class="menu_list">
<dl>
<dt><span>付款申请</span></dt>
<dd>
<a href="danbifukuan"><i class="system"></i><em>单笔付款</em></a>
</dd>
<dt><span>交易查询</span></dt>
<dd>
<a href="daifujiaoyiHandler"><i class="system"></i><em>代付交易查询</em></a>
<a href="zhangwuHandler"><i class="system"></i><em>账务查询</em></a>
</dd>
<dt><span>账户管理</span></dt>
<dd>
<a href="yueHandler"><i class="system"></i><em>余额查询</em></a>
<a href="clientstatusHandler"><i class="system"></i><em>商户状态查询</em></a>
</dd>
</dl>
</div>
</div>
</div>
 <div id="dcMain">
   <!-- 当前位置 -->
<div id="urHere">账户管理<b>></b><strong>余额查询</strong> </div>   <div id="manager" class="mainBox" style="height:auto!important;height:550px;min-height:550px;">
    <h3>余额查询</h3>
    <table width="50%" border="0" cellpadding="8" cellspacing="0" class="tableBasic">
     <tr>
      <th style="background-color:lightblue" width="30" align="center">商户编号</th>
      <th width="70" align="center" id="yue_clientid">${yue.clientId}</th>
     </tr>
     <tr>
      <th style="background-color:lightblue" width="30" align="center">账号</th>
      <th width="70" align="center" id="yue_accNo">${resData.accNo}</th>
     </tr>
     <tr>
      <th style="background-color:lightblue" width="30" align="center">账户状态</th>
      <th width="70" align="center" id="yue_accSts">
      	<c:if test="${resData.accSts=='01'}">正常</c:if>
      	<c:if test="${resData.accSts=='02'}">异常</c:if>
      </th>
     </tr>
     <tr>
      <th style="background-color:lightblue" width="30" align="center">总金额</th>
      <th width="70" align="center" id="yue_totalBl">${resData.totalBl}元</th>
     </tr>
     <tr>
      <th style="background-color:lightblue" width="30" align="center">可用余额</th>
      <th width="70" align="center" id="yue_bl">${resData.bl}元</th>
     </tr>
    </table>
 </div>
 </div>
<div class="clear"></div> 
</div>
</body>
</html>